package com.draven.mapper;

import com.draven.entity.News;
import com.draven.model.BaseConditionVO;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface NewsMapper {
    int deleteByPrimaryKey(String id);

    int insert(News record);

    int insertSelective(News record);

    News selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKeyWithBLOBs(News record);

    int updateByPrimaryKey(News record);

    List<News> listNews(BaseConditionVO vo, RowBounds rb);

    int countNews(BaseConditionVO vo);

}